Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
Printing Messages / Compatibility Messages


GXPrClosePage

QuickDraw GX sends the GXPrClosePage message when an application that supports the Macintosh Printing Manager calls the PrClosePage function. You can override the GXPrClosePage message to customize the handling of the PrClosePage function. Your override of the GXPrClosePage message must match the following formal declaration:

OSErr GXPrCloseDoc (TPPrPort aTPPrPort);
aTPPrPort
A pointer to a TPPrPort record.
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
The default implementation of this message generates the GXFinishPage message. You can override this message to add any special handling that your driver requires at the time that a page has finished printing.

SPECIAL CONSIDERATIONS
You never send the GXPrClosePage message yourself.

You almost always forward the GXPrClosePage message so that the default implementation can perform its operations.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.
SEE ALSO
The PrClosePage function is described in Inside Macintosh: Imaging With QuickDraw.

The GXFinishPage message is described on page 4-57.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help